package cn.yogehaoren.badfox.spring.boot;

import cn.yogehaoren.badfox.Constants;
import cn.yogehaoren.badfox.annotation.EnableBadFox;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@Configuration
@ConditionalOnProperty(name = {Constants.BAD_FOX_ENABLED})
@EnableConfigurationProperties({BadFoxProperties.class})
@ComponentScan({"**/crawlers", "**/queues", "**/interceptors", "cn.yogehaoren.badfox"})
@EnableBadFox
public class BadFoxAutoConfiguration {
}
